package com.syg.response;


import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.io.Serializable;

/**
 * @author syg
 * @date 2021年11月22日19:38:13
 * @version 1.0
 */
public class DataResponse<T> implements Serializable {
    private static final Logger log = LoggerFactory.getLogger(DataResponse.class);
    private static final long serialVersionUID = 1L;
    public static final String SUCCESS = "0000000";
    private static final String SUCCESS_MSG = "操作成功";
    public static final String ERROR = "0000001";
    private static final String ERROR_MSG = "操作失败";
    private static final String PARAM_PRE = "{";
    private static final String PARAM_SUF = "}";
    private String code;
    private String message;
    private T data;


    public static Logger getLog() {
        return log;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public static String getSUCCESS() {
        return SUCCESS;
    }

    public static String getSuccessMsg() {
        return SUCCESS_MSG;
    }

    public static String getERROR() {
        return ERROR;
    }

    public static String getErrorMsg() {
        return ERROR_MSG;
    }

    public static String getParamPre() {
        return PARAM_PRE;
    }

    public static String getParamSuf() {
        return PARAM_SUF;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
